package com.example.businessserver.service;

import com.example.entities.Food;
import com.example.server_engineer.controller.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "food-service",path = "/food")
public interface FoodFeignService {
    @GetMapping("/query/bybusiness/{id}")
    R queryByBusinessId(@PathVariable Integer id);
}
